package io.renren.modules.recorderReport.service.impl;

import io.renren.modules.recorderReport.dao.ReportAuditDao;
import io.renren.modules.recorderReport.dao.TBaseLocationDao;
import io.renren.modules.recorderReport.entity.ReportAuditEntity;
import io.renren.modules.recorderReport.entity.TBaseLocationEntity;
import io.renren.modules.recorderReport.service.ReportAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("reportAuditService")
public class ReportAuditServiceImpl implements ReportAuditService {

    @Autowired
    ReportAuditDao reportAuditDao;

    @Autowired
    TBaseLocationDao tBaseLocationDao;

    @Override
    public ReportAuditEntity queryObject(String id){
        return reportAuditDao.queryObject(id);
    }

    @Override
    public List<ReportAuditEntity> queryList(Map<String, Object> map){
        return reportAuditDao.queryList(map);
    }

    @Override
    public List<TBaseLocationEntity> likeForStreetPage(Map<String, Object> map) {
        return tBaseLocationDao.likeForStreetPage(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return reportAuditDao.queryTotal(map);
    }

    @Override
    public int queryTotalStreet(Map<String, Object> map){
        return tBaseLocationDao.queryTotalStreet(map);
    }

    @Override
    public void updateReportAuditSave(ReportAuditEntity reportAudit) {
        reportAuditDao.updateByKey(reportAudit);
    }


}

